<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>家居商城-购物车</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/res/layui/css/layui.css">
    <link rel="stylesheet" href="/res/static/css/index.css">
</head>
<body>

<!--头部-->
<th:block th:include="header"/>
<!-- 结算界面 -->
<form action="/cart/confirm" method="post" target="_self">
<div class="layui-container house-usershop">
    <table id="house-usershop-table" lay-filter="house-usershop-table"></table>
    <div class="house-usershop-table-num layui-form">
        <input type="hidden" id="ids" name="ids">
        <input type="checkbox" lay-skin="primary">
        <span class="numal">已选 0 件</span>
        <p id="total">合计: ￥<span>0.00</span></p>
        <div id="toCope">
            <p>应付：<big>￥0.00</big></p>
            <span>包邮</span>
        </div>
        <button class="layui-btn"><a href="javascript:;">结算</a></button>
    </div>
</div>
</form>
<!--尾部-->
<th:block th:include="footer"/>

<script type="text/html" id="goodsTpl">
    <div cartId=" {{ d.id }}">
        <img src="{{ d.imgPath }}" alt="">
        <div style="display: inline-block; text-align: left; vertical-align: top;"><p>{{ d.productName}}</p></div>
    </div>
</script>

<script type="text/html" id="priceTpl">
    <p><span class="price">¥{{ d.price }}</span></p>
</script>

<script type="text/html" id="numTpl">
    <div class="numVal">
        <button class="layui-btn layui-btn-primary sup">-</button>
        <input type="text" readonly class="layui-input" value="{{ d.count }}">
        <button class="layui-btn layui-btn-primary sub">+</button>
    </div>
</script>

<script type="text/html" id="totalTpl">
    <span class="total" style="color: #cd2d15;">￥{{ (d.price * d.count).toFixed(2) }}</span>
</script>

<script type="text/html" id="shopTpl">
    <a lay-event="del">删除</a>
</script>


<script src="/layui-v2.6.8/layui/layui.js"></script>
<script src="/js/header.js"></script>
<script src="/res/static/js/house.js"></script>
<script src="/js/lay-module/common/common.js"></script>
<script src="/js/template-web.min.js"></script>
<script src="/lib/jquery-3.4.1/jquery-3.4.1.min.js"></script>



</body>
</html>